import { Req, type Resp } from '@/utils/request'

// 获取接口日志
export function getSysLogList(
  search: SysLog,
  page: {
    pageNum: number
    pageSize: number
  }
): Promise<Resp<PageInfo<SysLog>>> {
  return Req.$post<PageInfo<SysLog>>('/syslog/list', search, page)
}

// 清空接口日志
export function cleanLog(): Promise<Resp<any>> {
  return Req.$delete<any>('/syslog/clean')
}
